package com.itic.appbase.framework.xcx.type;

public enum ConfirmState {
	cancel("0","拒绝接单"),agree("1","同意接单");
	private String state;
	private String name;
	ConfirmState(String state, String name) {
		this.state = state;
		this.name = name;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	
	public static ConfirmState getConfirmState(String state) {
		ConfirmState confirmState = null;
		switch (state) {
		case "0":
			confirmState = ConfirmState.cancel;
			break;
		case "1":
			confirmState = ConfirmState.agree;
			break;
		}
		return confirmState;
	}
}
